package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.result.R;
import com.atguigu.guli.service.trade.feign.fallBack.EduCourseFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@Component
@FeignClient(value = "service-edu",fallback = EduCourseFallBack.class)
public interface EduCourseFeign {
    @GetMapping("/api/edu/course/getCourseFromTrade/{courseId}")
    public R getCourseFromTrade(@PathVariable("courseId") String courseId);

    @PutMapping("/api/edu/course/update/{courserId}")
    public R update(@PathVariable String courserId);



}
